@file:OptIn(ExperimentalSerializationApi::class)
package moe.fuqiuluo.comm


import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonNames
import moe.fuqiuluo.CONFIG

@Serializable
data class EnvData(
    var uin: Long,
    @JsonNames("androidId", "android_id", "imei")
    var androidId: String,
    var guid: String,
    var qimei36: String,

    var qua: String = CONFIG.protocol.qua,
    var version: String = CONFIG.protocol.version,
    var code: String = CONFIG.protocol.code
)

@Serializable
data class Protocol(
    var qua: String,
    var version: String,
    var code: String
)

@Serializable
data class UnidbgConfig(
    var dynarmic: Boolean,
    var unicorn: Boolean,
    var debug: Boolean,
)

@Serializable
data class QSignConfig(
    var protocol: Protocol,
    var unidbg: UnidbgConfig,
    @JsonNames("blackList", "black_list")
    var blackList: List<Long>? = null
)